Fixed retrieving mediaIds when not ready: lost promise's result
Improved logging at uploadind pictures