merged image.lua with render/texture.lua