remove BitmapFactory.Options inPurgeable and inInputShareable as these cause conflict with inBitmap.