Use division consistently between PY2 and PY3
Update test to use floating point images and with updated values