updated gems and fixed some image file permissions