Fixed JavaScript bug with empty canvas & added type to Drawings controller