Small square image has invalid dimensions