Converted image picking to getMedia function.
Removed unused search result macro.
Removed macros that aren't being used/being used in only one place.