Refactors image_preview_input for simple form (to reduce complexity)