works, options, function
ignore jpegs