as you are telling that the bumps stared appearing after taking a painkiller. it looks like allergy
or maybe a coincidental skin condition.
i recommend you to show it to doctor to examine you whether it was an allergy or not.
yes u can apply ointment as it will be soothening. and also antibiotic ointment can prevent any secondary infection over them.