prevent warning for old images where file_size is not defined