Updated custom img syntax in controller to provide correct src path and to allow for specifying alignment; added accompanying styles