added saving charts as png/jpeg files