Added control for send resized image on ComposeMessage:

Signed-off-by: Andrea Cappelli <a.cappelli87@gmail.com>
In case of problem the resized image was sent by resendPendingMessage

Signed-off-by: Andrea Cappelli <a.cappelli87@gmail.com>