Fixed bug when texture width < texture height (aspect ratio)