resize and organize pictures