Add gitingore
Fix from_image method definition