Various fixes for uploading images

to make it works now in 2.4 dev using InputfieldImage, still somewhat
hackish but works. Added check required parent on upload, added
dependencies to show upload input only if parent is selected (hackish
too, since ProcessPageList has a bug causing InputfieldPageListSelect
not work with dependencies.