Added file dialog, fixed some coordinates mirrored bugs