Fix texture_setimage

Was mapping the data without unmapping the data, causing the data to
become locked