A few fixes

Added support for saving cropped images as jpg or png. Also fixed a bug
created by the new logo loading function.