Set image url in form, use it in preview