Gallery2: Fix the original picture not display after edit.

Not move the origianl picture to auxiliary directory and insert
the edited picture record to the database.

CRs-fixed: 714431

Change-Id: I5b8fce7b24cc812463282d114094356707c2096c
Gallery2: Fix Gallery crash when exit playing gif pic.

When we press back key to exit playing gif pic,the decoder is
free and set to null,which casuse this bug happened.

Add a condition to avoid the NullPointerException.

CRs-fixed: 653709

Change-Id: Iab299554c252c3a1c9352b498cd946cb53e47cc7
Gallery2: Reginal requirement for RTL

Convert left/right layout properties to start/end properties.

Change-Id: Icaa0388cafbf1133fb37933f0ca1452d8d20968b