Fix bug

Given rotation background color was ignored when encoding from image
with transparency to image with no alpha channel.