set overlay height to match image height