constrain player image to available space