adds thumbnail after image is uploaded, ng-repeat issues
fixes ng-repeat in images in dashboard.html