re-arrange jpg order