Add support for gif and png images