bugfix: bitflag converted to float because it was placed inside array with float pixel coordinates, changed syntax to keep it as an int