setting up image input