added image code and fixed #pragma on util