add fully functionality for images