fixed court upload photo bug