Refactor to not use two separate templates depending on if the image is on the right or left side.