image: check image width and height