Swapping Images

Swapping the images functions and added the function to make the code
cleaner