Revert "Updated image converter due to normalization bugs"

This reverts commit cbf21d3f762e0dca4f7d7b0b329503f3c190fc03.
Reverted previous commit because it broke parts of code