ACT-1505: Should throw an exception if the picture is not generated: added extra logging