Erased robot conditions have a border

Border wasn't displayed when condition was an erased element since it
was transparent.
Resizing image elements

Now resize the img as well.
Fixed a typo in using JSON height
Image element widget sizes preserved

When reloading.