Thanks for writing your query.
After reading your post, I would like to reassure you that the injury seems to be a soft tissue injury
and will heal in due course of time.
Black eye is a common symptom in cases of forehead injury
and will take few weeks to resolve.
It is good that you have applied ice pack.
If the pain persists or some new symptoms develop like lethargy or excessive crying, vomiting
, you should seek medical care immediately.
Any medicine should be given under medical supervision only.
I hope this is helpful to you.