Bug 995116 - [Tarako][MMS][Gallery] SMS/MMS OOM after attach a large pixel picture from gallery

- Avoid image resizing tasks executed at the same time
- Use moz sample size for jpeg image for less memory consumption while image resizing