stores pictures correctly