fixing bug when rendering images from mesh