[PATCH] Handle transparency and backgrounds properly in PNG files