Added image format option.