Semantic Communication based on Generative AI: A New Approach to Image Compression and Edge Optimization