Completed mainimage upload. Issue #1