does this function update the image size