Got 2nd version working but the floating point values differ slighly but produce a similar image