getting thumbnail width and height from headers when available