moved pyramid image to texture memory and unrolled loop