Check image size when reading targa file

Throw an error when image width or height is 0 when reading a targa file
Solves #140