Got image uploads working but have some bugs (pun intended) to work out