We have a PHP class to crop pictures, however, it accepts the same size on w*h. We need to modify that class to accept any w or h without adding extra black or white spaces to the cropped picture. Also, it should read any image type: jpg, gif and png.