Added basic image uploading functionality.