moved location image code to an include