Fixes interpretation of background=-1 while rotating an image.
Merge branch 'master' into PR-4