Refactored collision test code

Single function to set sides of image object for collision testing
(function imageSidesSetter). Removed console logs that were used for
testing purposes in the collision test code.