improved exception on generation failure

include the requested image in exception message when the generation failed