added support for ".jpg|.jpeg" images