Adding jpeg extension to image functions- #16