Misc cleanup in image magick render agent.