Added rotation for non-jpeg images
Use BitmapUtilities for image saving
Use BitmapUtilities for image saving