Improve performance of collision detection by checking for image overlap