Updated image controller and Dropbox class