I have an application that displays an image in ImageView, and I am experiencing a problem specifically for Android 4.1.2. It is confirmed that it does not work on three separate devices 4.1.2 when working on versions 2.3.7, 4.2.1, 4.3 and 4.4.2. The error occurs for several different images, but not for all. Something seems to be related to some specific JPEG files that are not working properly.
How it actually looks and how it is displayed on Android 4.1.2:

The above image (left) is one of these problematic image files.
The summary of the code behind the setting of the displayed image is as follows:
Bitmap bitmap, background;
ImageView imageView = (ImageView)findViewById(R.id.imageView);
BitmapFactory.Options options = new BitmapFactory.Options();
options.inScaled = false;
options.inPurgeable = true;
options.inInputShareable = true;
bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.dog, options);
background = bitmap.copy(Bitmap.Config.RGB_565, true);
Canvas canvas = new Canvas(background);
canvas.drawBitmap(bitmap, 0, 0, null);
imageView.setImageBitmap(background);
, Photoshop, , . , .
, Android 4.1.2, - ?
Google "", "", "" .., . , :