only scale images with dimensions greater 0