Special User Images

In my website, registered users can upload a user image for their account, but I want to create optional image folder in the website where the where the upload wizard will first check and preview available images which users may like to use as their user_image then the second option will be selecting image from their pc.
I will appreciate any help.

Is there a CMS in use atm? If so, which one?

No CMS. pure html/php personal development .