Related: fdo#33455 retain color on scaling of 1 bit depth pngs

Change-Id: I445ce672742ddb6d6592ef419bf5e14c5f09a5b5
(cherry picked from commit be9d65bb5f5a83c19eec02a037b8f808de70ecb8)