CG-46 add if-clause to check for image