Можеv упростить часть пути "weight_logs/weight_log_{size}.jpg" => "weight_logs/{size}.jpg"