Convert all line endings to Unix LF
Get the MIME type of an image from its path
Build a dynamic where clause for a column