support large camera bitmaps and rotation, write to external storage