test type and orientation to not mess up the image