fixed bug on first image capture
WIP - image uploads and downloads added, not yet fully implemented