Update main.lua

add support for block textures