Add shape of the image back in (was previously in  the __main__ part of the script)