Add gif and jpeg packages for travis