Changed image reading procedure to apply for jar files