compress and inline image