cleaned up image sending code. refactored fiveHundred