Chrome extension that automatically renames images according to MIME type