Fixes glitch in resize example when there are transparent pixels

Thanks nigeltao!