Added variable for available space in image.