Better texture resize

Minor bug with texture rezise