LIB001-693: Javascript for handling mimed record image sizes