Fixed thread issues, and images are now compressable