Added single/multi sprite support. Added jpg support and auto extension detection