make image dimensions test before make thumb