updated gear controller to accept parameters for pictures