Adding picture edit functionality