Fix extra case in switch statement
Implement img align attribute