generating health bar image