resizing andd add image