Refactoring location drawing

Moving the locations into their own function
Refactoring image code into a function

Moving the image drawing rules into its own function.
Draw drop shadows and white borders on pictures
Cleaning up comments and removing debug code