Add a checkerboard background for transparent images

Fix #1291 
@jancborchardt @icewind1991 @kabum