adds code to square off images going forward