fixed: add GIF as known header to cximage.
changed: pass detected image mimetype further done to avoid a second lookup.