fixed rendering only part of an image to texture