reached file descriptor stage of image upload code