Fixed image overflow problem