Image function fix (no longer relies on unavailable high/low values)
indexing changes