main updated in order to allow a better user experience by passing picture and parameters at launch