Alter image displaying code