read_image should now be more efficient
gave credit to myself :-)