fixed bugs in photo upload action sheet