bugfix: crash if picture is not in the right size