-fixed some bugs
-improved functionality of PhotoUtils