added function to get/free SwsContext