Updated pictureLib.php

Made changes to allow pictures to be reordered. Note: Pictures table in
DB has been updated too.