Added gif support for alternate media formats (using png as default for bmps)