Unable to select or upload images properly in form?