Only attempt transforming files if valid content type