Trajectory optimization methods for drone cameras