adding ftell checks
skip bytes
texture handling