Support GIF and PNG. Still no animated GIFs. Closes #4.