picture edit functionality