Change the way of loading images
otherwise the memory will be overflow