adding take_image.c