Fixed bug where FreeImage was not initialized