Added attachment function

Pictures get uploaded and attached, still some trouble with
format/displaying the image. Will be fixed when image function in form
is complete.