made image extension compile static completly