Simplified/optimized healthbar drawing code