Well I am also looking to automate the render queue and output filename which will be driven by the comp name, so that won’t work as the comp name will change in tandem with each image change.
But I actually thought of a simple workaround! I have placed my comp in a folder called #comp. This ensures the folder is always index 1 and the comp is always index 2, regardless of what the image filename turns out to be, as # always supersedes numbers and characters.