Implemented image caching. Image resize