Require images (png, jpg, jpeg)

Fix #916