adapted flash halfpixel bitmap fix to multiply values !=1