Fixes transparency loss when cropping images in Pixidou image editor
(cherry picked from commit fb556d4)