Add asImage method for QgsSymbol