Cast to float during pixel transformation pipeline to fix iteration issue where fractions were failing