Fixes bug with image preview in RichPicker input