refs #18. Implemented image upload. Should be reviewed