applying texture to square