including jpeg extension as image file extension #360

Handling JPEG file extension.