Add gitignore
Fix from_image method definition