trimmed gif and jpeg support