Move Dropbox image metadata preparation to its own class

I got a little confused in this area so I refactored it a bit to make it easier for me at least to follow. Also helps to decouple the logic from dropbox, if you have any image string you can use the class to prepare the metadata. Might be worth moving out of the Dropbox namespace at some point.