update image border styling