added a coloured border depending on whether an image has been added or deleted.