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

address review comments
Bug 1068826 - [Flame][KK]Upon booting for first time, there are extra processes in the memory, possbly slowing the performance