nice tutorial... works a treat! Is there any way of checking the image width and height?