updating image border