Added the refactored image component
Fixed deprecated function call