Add a few new pics to device..will show up in the gallery but not the old ones.
Delete files named .NOMEDIA on Device memory of android using explorer or PC.(Hidden file it is)
Go to Settings-apps-all-media storage.. Clear data + Clear defaults +disable the app
Go to gallery and you will find...