Added linear and nearest option for textures