Bitmap OOM and rotation fixes