After you've logged a cache, and the log is redisplayed to you, you should see a link to allow you upload pictures. This will automatically add any pictures you upload to both the cache's gallery, and your gallery.
Oh ok, thanks! I was trying to do it from my profile.