make sure images not too big