Modified parameters to sendPhoto function