update image load to allow file-like argument