bug fix for big images