Added mimeType property

Instead of creating everytime a concatenation, I create the mimeType
variable and set it in the constructor. Also, fix the building fail.