show images using ajax after pdf is uploaded