Bug 1065877: prevent OOMs when editing, picking and sharing large images