Fixing undefined errors when user doesnt set a style or alt attribute on element closes #16