removed FreeImage dependency