scale a new picture if it has width>MAX_WIDTH OR height>MAX_HEIGHT