made input field for images more generic