verify image size