Added code for handling sane storage of images and parsing out the key form fields.