added type based jpg name