fixed some crash issues and reduced image size and more