Finished porting image and texture class