[[ Bug 11314 ]] Fix loss of image transparency when setting the imagedata