Correctly composite images