fixed err return
improved error message
added trace level
added logging and now closes mime parts
bugfixes and MarkLastPhotoInRoll
bugfixes and MarkLastPhotoInRoll