some bug corrected, and function to retrieve and save image frome allocine are part-working