fixed the image limit problem