possibly unnecessary freeimage hack