Rearrange images