updating to use filemagick gem to determine the correct content type