added blob variable and blob to image converter to media class